package com.itbaizhan.openhis.doctor.feign;

import com.itbaizhan.openhis.vo.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "his-erp-service")
public interface MedicinesFeignService {


    /**
     * 发药扣减库存
     * @param medicineId
     * @param num
     * @return
     */
    @PostMapping("/erp/medicines/deductionMedicinesStorage")
    AjaxResult deductionMedicinesStorage(@RequestParam("medicineId") Long medicineId, @RequestParam("num") long num);

}
